#ifndef MYLISTOBJECT_H
#define MYLISTOBJECT_H

#include <QWidget>

#include <QGLWidget>
#include <QTimer>
#include <QKeyEvent>
class mylistobject : public QGLWidget
{
    Q_OBJECT
public:
    mylistobject();
    ~mylistobject();
protected:
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();
    int LoadGLTextures();

    void keyPressEvent(QKeyEvent *);

    void BuildList();
    GLuint mTexture[3];

private:
    float mRotate_x;
    float mRotate_y;
    float mRotate_z;
    float mMove_z;

    QTimer mTimer;
    GLuint mBox;
    GLuint mTop;
};
#endif // MYLISTOBJECT_H
